package com.lqq.service;

import com.github.pagehelper.PageInfo;
import com.lqq.dto.UserDetailDto;
import com.lqq.entity.User;

import java.util.Map;

/**
 * @author qingqing.liang
 * @create 2018-01-30
 **/
public interface UserService {

    User getById(Long id);

    User getUserDetailById(Long id);

    UserDetailDto getUserDetailById2(Long id);

    PageInfo<User> getUsers(int pageSize, int currentPage);

    void updateBatch(Long[] ids,int status);

    PageInfo<User> findByStatusAndNameLike(Integer status, String name);

    PageInfo<User> chooseWhenOtherwise(Integer status, String name);
}
